/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.powerpoint;

import com.bedatadriven.mso.core.MsoTriState;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for PowerPoint.Design*/
public class Design extends JavaScriptObject {

	protected Design() { }
	public native final PpApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final _Master getSlideMaster()/*-{
		return this.SlideMaster;
	}-*/;

	public native final _Master getTitleMaster()/*-{
		return this.TitleMaster;
	}-*/;

	protected native final int _getHasTitleMaster()/*-{
		return this.HasTitleMaster;
	}-*/;

	public final MsoTriState getHasTitleMaster(){
		return MsoTriState.valueOf(_getHasTitleMaster());
	}
	public native final _Master addTitleMaster()/*-{
		return this.AddTitleMaster( );
	}-*/;

	public native final int getIndex()/*-{
		return this.Index;
	}-*/;

	public native final String getName()/*-{
		return this.Name;
	}-*/;

	public native final void setName(String value)/*-{
		this.Name = value;
	}-*/;

	protected native final int _getPreserved()/*-{
		return this.Preserved;
	}-*/;

	public final MsoTriState getPreserved(){
		return MsoTriState.valueOf(_getPreserved());
	}
	protected native final void _setPreserved( int value)/*-{
		this.Preserved = value;
	}-*/;

	public final void setPreserved(MsoTriState value){
		_setPreserved(value.getValue());
	}
	public native final void moveTo(int toPos)/*-{
		this.MoveTo( toPos);
	}-*/;

	public native final void delete()/*-{
		this.Delete( );
	}-*/;

}
